package com.xgq.drink.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.checker.units.qual.N;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CompositeOrderQuery {
    private Long brandId;
    private Integer status;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private BigDecimal minAmount;
    private BigDecimal maxAmount;
    private Long userId;
    private String orderId;
    private Long productId;
    private String category;
    private int current;
    private int size;
    public CompositeOrderQuery setBrandId(Long brandId) {
        this.brandId = brandId;
        return this;
    }

    public CompositeOrderQuery setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public CompositeOrderQuery setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
        return this;
    }

    public CompositeOrderQuery setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    public CompositeOrderQuery setMinAmount(BigDecimal minAmount) {
        this.minAmount = minAmount;
        return this;
    }

    public CompositeOrderQuery setMaxAmount(BigDecimal maxAmount) {
        this.maxAmount = maxAmount;
        return this;
    }

    public CompositeOrderQuery setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public CompositeOrderQuery setOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }

    public CompositeOrderQuery setProductId(Long productId) {
        this.productId = productId;
        return this;
    }

    public CompositeOrderQuery setCategory(String category) {
        this.category = category;
        return this;
    }

    public CompositeOrderQuery setCurrent(int current) {
        this.current = current;
        return this;
    }

    public CompositeOrderQuery setSize(int size) {
        this.size = size;
        return this;
    }

}